"""
配置信息集成:
1.数据库配置
2.redis配置
3.session配置
4.csrf配置
5.迁移
6.日志记录
"""
import logging
from flask.ext.migrate import Migrate, MigrateCommand
from flask.ext.script import Manager
from info import creat_app,db,models
from flask import current_app


app = creat_app('c')
#创建manager对象管理app
manager = Manager(app)
#使用Migrate关联app,db
Migrate(app,db)
#添加操作命令
manager.add_command("db",MigrateCommand)

# 老师项目clone地址：
# url = https://gitee.com/kobyant/infomation12.git

if __name__ == '__main__':
    # print(app.url_map)
    manager.run()